package com.xoa.dev.pz.service;

import com.xoa.dev.pz.model.PzPersonWithBLOBs;
import com.xoa.dev.pz.model.PzFullReleaseWithBLOBs;
import com.xoa.util.ToJson;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * Created by gsb on 2017/11/29.
 */
@Service
public interface PzFullReleaseService {

    ToJson insertFullRelease(HttpServletRequest request, PzFullReleaseWithBLOBs pzFullRelease);
    ToJson delFullRelease(HttpServletRequest request, int pid);
    ToJson upFullRelease(HttpServletRequest request, PzFullReleaseWithBLOBs pzFullRelease);
    ToJson selectFullRelease(HttpServletRequest request, HttpServletResponse response, Integer page, Integer pageSize, boolean useFlag, PzPersonWithBLOBs pzPersonWithBLOBs, String export, String pCradId, String pName);
    ToJson selectFullrelEaseId(HttpServletRequest request, Integer pId);
    ToJson selectInfoById(HttpServletRequest request, Integer pId);
    ToJson importFullRelease(MultipartFile file, HttpServletResponse response, HttpServletRequest request, HttpSession session);
}
